package com.hrm.dao;

import com.hrm.dto.EmpAttendanceDTO;
import com.hrm.entity.EmpAttendance;
import com.hrm.entity.EmpAttendanceExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface EmpAttendanceMapper {


    EmpAttendance selectTodayByEmpId(Integer empId);

    EmpAttendanceDTO selecetMonthByEmpId(@Param("empId")Integer empId,@Param("deptId")Integer deptId);

    Long empAttendance(@Param("empId")Integer empId,@Param("deptId")Integer deptId);

    Long empAbsence(@Param("empId")Integer empId,@Param("deptId")Integer deptId);

    Long empLate(@Param("empId")Integer empId,@Param("deptId")Integer deptId);






    //
    long countByExample(EmpAttendanceExample example);

    int deleteByExample(EmpAttendanceExample example);

    int deleteByPrimaryKey(Integer attendanceId);

    int insert(EmpAttendance record);

    int insertSelective(EmpAttendance record);

    List<EmpAttendance> selectByExample(EmpAttendanceExample example);

    EmpAttendance selectByPrimaryKey(Integer attendanceId);

    int updateByExampleSelective(@Param("record") EmpAttendance record, @Param("example") EmpAttendanceExample example);

    int updateByExample(@Param("record") EmpAttendance record, @Param("example") EmpAttendanceExample example);

    int updateByPrimaryKeySelective(EmpAttendance record);

    int updateByPrimaryKey(EmpAttendance record);
}